package cn.buk.tms.eotms.response;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author yfdai
 */
public class FlightOrderTicketDto {

  /**
   * 票号
   */
  private String ticketNo;

  private String passengerName;

  /**
   * 客票所对应的航段状态
   * null - 未知
   * 0 - 未使用
   * 1 - 已使用
   * 2 - 已改签
   * 3 - 已退票
   * 4 - 已作废
   * 128 - 已是终态（具体什么样的终态，不清楚）
   */
  private Integer ticketStatus;

  private String dport;

  private String dportName;

  private String aport;

  private String aportName;

  private String flightNo;

  private String ddate;

  private String dtime;

  private String atime;

  private String subclass;

  private int fltType;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date lastUpdate;

  public String getTicketNo() {
    return ticketNo;
  }

  public void setTicketNo(String ticketNo) {
    this.ticketNo = ticketNo;
  }

  public String getPassengerName() {
    return passengerName;
  }

  public void setPassengerName(String passengerName) {
    this.passengerName = passengerName;
  }

  public Integer getTicketStatus() {
    return ticketStatus;
  }

  public void setTicketStatus(Integer ticketStatus) {
    this.ticketStatus = ticketStatus;
  }

  public String getDport() {
    return dport;
  }

  public void setDport(String dport) {
    this.dport = dport;
  }

  public String getAport() {
    return aport;
  }

  public void setAport(String aport) {
    this.aport = aport;
  }

  public String getFlightNo() {
    return flightNo;
  }

  public void setFlightNo(String flightNo) {
    this.flightNo = flightNo;
  }

  public String getDdate() {
    return ddate;
  }

  public void setDdate(String ddate) {
    this.ddate = ddate;
  }

  public String getDtime() {
    return dtime;
  }

  public void setDtime(String dtime) {
    this.dtime = dtime;
  }

  public String getSubclass() {
    return subclass;
  }

  public void setSubclass(String subclass) {
    this.subclass = subclass;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getLastUpdate() {
    return lastUpdate;
  }

  public void setLastUpdate(Date lastUpdate) {
    this.lastUpdate = lastUpdate;
  }

  public String getDportName() {
    return dportName;
  }

  public void setDportName(String dportName) {
    this.dportName = dportName;
  }

  public String getAportName() {
    return aportName;
  }

  public void setAportName(String aportName) {
    this.aportName = aportName;
  }

  public String getAtime() {
    return atime;
  }

  public void setAtime(String atime) {
    this.atime = atime;
  }

  public int getFltType() {
    return fltType;
  }

  public void setFltType(int fltType) {
    this.fltType = fltType;
  }
}
